<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/


Route::group(['prefix' => '/v1', 'namespace' => 'Api'], function () {
    Route::get('/test', 'TestController@index');
    Route::post('/authLogin', 'TestController@authLogin');


    Route::group(['prefix' => '/user'], function () {

        // 获取列表
        Route::get('/getList', 'UserController@getList');

        // 微信的验证
        Route::post('/weChatVerity', 'UserController@weChatLogin');

        // 注册
        Route::get('/register', 'UserController@register');

    });




});

Route::group(['prefix' => '/v1', 'namespace' => 'Org'], function () {

    Route::get('weixin/getOpenId', 'WeChatController@getOpenId');

});


Route::group(['prefix' => '/v2', 'namespace' => 'Api'], function () {

    Route::get('/member/register', 'MemberController@register');

});


